package com.stp.event.listener;

import com.stp.event.entity.PayApplicationEvent;
import lombok.NonNull;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * 实现 ApplicationListener<监听的类型>
 */
//@Component
public class OnePayApplicationListener implements ApplicationListener<PayApplicationEvent> {
    @Override
    public void onApplicationEvent(@NonNull PayApplicationEvent event) {
        System.out.println(event.toString());
    }
}
